<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>修改</title>
<link rel="stylesheet"
	href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
<script
	src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script
	src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
	<script type="text/javascript">
	function save(ID){
		$.ajax({
			type:"post",
			url:'<%=basePath%>customs/editU?ID=' + ID,
			data:$("#userForm").serialize(),
			dataType:"text",
			success:function(data){
				
				top.Dialog.close()
				window.location.reload();
			}
			
			
		})
		
	}
	</script>
</head>
<body>
<div style="width:500px;height:400px">
<form method="post"  id="userForm">
<input type="hidden" name="ID" id="id" value="${pd.ID }"/>
<div id="zhongxin" style="padding-top: 13px;">
			<fieldset>
			<div class="form-group" >
				<label class="col-sm-2 control-label">报关方式</label>
				<div class="col-sm-4">
					<input class="form-control"  type="text"
					name="CUSTOMS_DECLARATION_MODE" value="${pd.CUSTOMS_DECLARATION_MODE}" />
				</div>
				<label class="col-sm-2 control-label">快速检索码</label>
				<div class="col-sm-4">
					<input class="form-control"  
					name="FAST_SEARCH_CODE" value="${pd.FAST_SEARCH_CODE}"/>
				</div>
			</div>
		</fieldset>
		<fieldset>
			<div class="form-group">
				<label for="disabledSelect" class="col-sm-2 control-label">是否可用</label>
				<div class="col-sm-10">
				<select name="ENABLE" title="状态" style="width:470px;height:30px;text-align: right;">
										<option value="1" <c:if test="${pd.ENABLE == '1' }">selected</c:if> >是</option>
										<option value="0" <c:if test="${pd.ENABLE == '0' }">selected</c:if> >否</option>
										</select>
				</div>
			</div>
			<div>
			                     <div class="center" style="text-align: center;" colspan="10">
										<a class="btn btn-mini btn-primary" onclick="save('${pd.ID}');">保存</a>
										<a class="btn btn-mini btn-danger" onclick="top.Dialog.close();">取消</a>
									</div>
								</div>
		</fieldset>
		</div>
		
</form>

</div>
</body>
</html>
